<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>饿了么首页</title>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

    <link rel="stylesheet" type="text/css" href="css/itemType.css">

    <script type="text/javascript" src="js/async.js"></script>
    <script type="text/javascript" src="js/view.js"></script>

    <style type="text/css">
        .glyphicon-shopping-cart{
            color:#FFFFFF;
        }
    </style>
</head>

<body>
    <!-- Search Header -->
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Web饿了么</a>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">你好！伙计</a></li>
                    <li><a class="glyphicon glyphicon-shopping-cart"></a></li>
                </ul>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
          拥有菜品类别： <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">所有</a></li>
                            <li><a href="#">酒水</a></li>
                            <li><a href="#">主食</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">小吃</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">套餐</a></li>
                        </ul>
                    </li>
                </ul>
                <form class="navbar-form navbar-left">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="输入店名">
                    </div>
                </form>
            </div>
            <!-- /.navbar-collapse -->
        </div>
    </nav>
    <!-- Tab panes -->
    <div class="container" id="container-all">

    </div>

    <!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

    <script type="text/javascript">
    $(function() {
        var ajaxOpt = asyncRequest("http://localhost:8080/ceat/mlist");
        var refresher = viewRefresher($("#container-all"));
        // ajaxOpt.doGet(refresher.refresh);
        ajaxOpt.intervalDoGet(refresher.refresh);
    });
    </script>
</body>

</html>